home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / graphics / view.inc < prev   
Text File  |  1998-06-24  |  4KB  |  203 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/semaphores.inc";
  3. include "inc/graphics/gfx.inc";
  4. include "inc/graphics/copper.inc";
  5. include "inc/graphics/gfxnodes.inc";
  6. include "inc/graphics/monitor.inc";
  7. include "inc/graphics/displayinfo.inc";
  8. include "inc/hardware/custom.inc";
  9.  
  10. struct ViewPort is
  11.   Next:ulong;
  12.   ColorMap:ulong;
  13.   DspIns:ulong;
  14.   SprIns:ulong;
  15.   ClrIns:ulong;
  16.   UCopIns:ulong;
  17.   DWidth,DHeight:word;
  18.   DxOffset,DyOffset:word;
  19.   Modes:uword;
  20.   SpritePriorities:ubyte;
  21.   ExtendedModes:ubyte;
  22.   RasInfo:ulong;
  23. ;
  24.  
  25. struct View is
  26.   ViewPort:ulong;
  27.   LOFCprList:ulong;
  28.   SHFCprList:ulong;
  29.   DyOffset,DxOffset:word;
  30.   Modes:uword;
  31. ;
  32.  
  33. struct ViewExtra is
  34.   n:ExtendedNode;
  35.   View:ulong;
  36.   Monitor:ulong;
  37.   TopLine:uword;
  38. ;
  39.  
  40. struct ViewPortExtra is
  41.   n:ExtendedNode;
  42.   ViewPort:ulong;
  43.   DisplayClip:Rectangle;
  44.   VecTable:ulong;
  45.   DriverData[2]:ulong;
  46.   Flags:uword;
  47.   Origin[2]:Point;
  48.   cop1ptr:ulong;
  49.   cop2ptr:ulong;
  50. ;
  51.  
  52. def VPXB_FREE_ME = 0;
  53. def VPXF_FREE_ME = (1<<VPXB_FREE_ME);
  54. def VPXB_LAST = 1;
  55. def VPXF_LAST = (1<<VPXB_LAST);
  56. def VPXB_STRADDLES_256 = 4;
  57. def VPXF_STRADDLES_256 = (1<<VPXB_STRADDLES_256);
  58. def VPXB_STRADDLES_512 = 5;
  59. def VPXF_STRADDLES_512 = (1<<VPXB_STRADDLES_512);
  60.  
  61. def EXTEND_VSTRUCT = $1000;
  62.  
  63. def VPF_A2024 = $40;
  64. def VPF_TENHZ = $20;
  65. def VPB_A2024 = 6;
  66. def VPB_TENHZ = 4;
  67.  
  68. def GENLOCK_VIDEO = $0002;
  69. def LACE = $0004;
  70. def DOUBLESCAN = $0008;
  71. def SUPERHIRES = $0020;
  72. def PFBA = $0040;
  73. def EXTRA_HALFBRITE = $0080;
  74. def GENLOCK_AUDIO = $0100;
  75. def DUALPF = $0400;
  76. def HAM = $0800;
  77. def EXTENDED_MODE = $1000;
  78. def VP_HIDE = $2000;
  79. def SPRITES = $4000;
  80. def HIRES = $8000;
  81.  
  82. struct RasInfo is
  83.   Next:ulong;
  84.   BitMap:ulong;
  85.   RxOffset,RyOffset:word;
  86. ;
  87.  
  88. struct ColorMap is
  89.   Flags:ubyte;
  90.   Type:ubyte;
  91.   Count:uword;
  92.   ColorTable:ulong;
  93.   cm_vpe:ulong;
  94.   LowColorBits:ulong;
  95.   TransparencyPlane:ubyte;
  96.   SpriteResolution:ubyte;
  97.   SpriteResDefault:ubyte;
  98.   AuxFlags:ubyte;
  99.   cm_vp:ulong;
  100.   NormalDisplayInfo:ulong;
  101.   CoerceDisplayInfo:ulong;
  102.   cm_batch_items:ulong;
  103.   VPModeID:ulong;
  104.   PalExtra:ulong;
  105.   SpriteBase_Even:uword;
  106.   SpriteBase_Odd:uword;
  107.   Bp_0_base:uword;
  108.   Bp_1_base:uword;
  109.  
  110. ;
  111.  
  112. def COLORMAP_TYPE_V1_2 = $00;
  113. def COLORMAP_TYPE_V1_4 = $01;
  114. def COLORMAP_TYPE_V36 = COLORMAP_TYPE_V1_4;
  115. def COLORMAP_TYPE_V39 = $02;
  116.  
  117. def COLORMAP_TRANSPARENCY = $01;
  118. def COLORPLANE_TRANSPARENCY = $02;
  119. def BORDER_BLANKING = $04;
  120. def BORDER_NOTRANSPARENCY = $08;
  121. def VIDEOCONTROL_BATCH = $10;
  122. def USER_COPPER_CLIP = $20;
  123. def BORDERSPRITES = $40;
  124.  
  125. def CMF_CMTRANS = 0;
  126. def CMF_CPTRANS = 1;
  127. def CMF_BRDRBLNK = 2;
  128. def CMF_BRDNTRAN = 3;
  129. def CMF_BRDRSPRT = 6;
  130.  
  131. def SPRITERESN_ECS = 0;
  132. def SPRITERESN_140NS = 1;
  133. def SPRITERESN_70NS = 2;
  134. def SPRITERESN_35NS = 3;
  135. def SPRITERESN_DEFAULT = -1;
  136.  
  137. def CMAB_FULLPALETTE = 0;
  138. def CMAF_FULLPALETTE = (1<<CMAB_FULLPALETTE);
  139. def CMAB_NO_INTERMED_UPDATE = 1;
  140. def CMAF_NO_INTERMED_UPDATE = (1<<CMAB_NO_INTERMED_UPDATE);
  141. def CMAB_NO_COLOR_LOAD = 2;
  142. def CMAF_NO_COLOR_LOAD = (1<<CMAB_NO_COLOR_LOAD);
  143. def CMAB_DUALPF_DISABLE = 3;
  144. def CMAF_DUALPF_DISABLE = (1<<CMAB_DUALPF_DISABLE);
  145.  
  146. struct PaletteExtra is
  147.   pe_Semaphore:SignalSemaphore;
  148.   pe_FirstFree:uword;
  149.   pe_NFree:uword;
  150.   pe_FirstShared:uword;
  151.   pe_NShared:uword;
  152.   pe_RefCnt:ulong;
  153.   pe_AllocList:ulong;
  154.   pe_ViewPort:ulong;
  155.   pe_SharableColors:uword;
  156. ;
  157.  
  158. def PENB_EXCLUSIVE = 0;
  159. def PENB_NO_SETCOLOR = 1;
  160.  
  161. def PENF_EXCLUSIVE = (1<<PENB_EXCLUSIVE);
  162. def PENF_NO_SETCOLOR = (1<<PENB_NO_SETCOLOR);
  163.  
  164. def PEN_EXCLUSIVE = PENF_EXCLUSIVE;
  165. def PEN_NO_SETCOLOR = PENF_NO_SETCOLOR;
  166.  
  167. def PRECISION_EXACT = -1;
  168. def PRECISION_IMAGE = 0;
  169. def PRECISION_ICON = 16;
  170. def PRECISION_GUI = 32;
  171.  
  172. def OBP_Precision = $84000000;
  173. def OBP_FailIfBad = $84000001;
  174.  
  175. def MVP_OK = 0;
  176. def MVP_NO_MEM = 1;
  177. def MVP_NO_VPE = 2;
  178. def MVP_NO_DSPINS = 3;
  179. def MVP_NO_DISPLAY = 4;
  180. def MVP_OFF_BOTTOM = 5;
  181.  
  182. def MCOP_OK = 0;
  183. def MCOP_NO_MEM = 1;
  184. def MCOP_NOP = 2;
  185.  
  186. struct DBufInfo is
  187.   dbi_Link1:ulong;
  188.   dbi_Count1:ulong;
  189.   dbi_SafeMessage:Message;
  190.   dbi_UserData1:ulong;
  191.   dbi_Link2:ulong;
  192.   dbi_Count2:ulong;
  193.   dbi_DispMessage:Message;
  194.   dbi_UserData2:ulong;
  195.   dbi_MatchLong:ulong;
  196.   dbi_CopPtr1:ulong;
  197.   dbi_CopPtr2:ulong;
  198.   dbi_CopPtr3:ulong;
  199.   dbi_BeamPos1:uword;
  200.   dbi_BeamPos2:uword;
  201. ;
  202.  
  203.